#!/usr/bin/env python3.10
# -*- encoding: utf-8 -*-
'''
@File    :   api.py
@Time    :   2024/02/19 15:49:33
@Author  :   windstarry 
@Version :   1.0
'''
# here put the import lib
from ninja_extra import NinjaExtraAPI
from system.controllers import UserController, UserTokenController,UserRoleController,UserClassController
from apps.exam.controllers import ExamController,ExamCategoryController
from apps.question.controllers import QuestionController,QuestionTypeController



api = NinjaExtraAPI(
    title="考试后端管理系统",
    description="使用DjangoNinjaextra实现的考试后端管理接口",
    version="1.0.0",
    urls_namespace="exam",
)


api.register_controllers(
    UserTokenController,
    UserController,
    UserRoleController,
    UserClassController,
    ExamController,
    ExamCategoryController,
    QuestionController,
    QuestionTypeController,
)
